package ui.panel.setup.subsidiary;

import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.shape.SVGPath;
import javafx.stage.Stage;

public class TextFieldStyleTest extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        BorderPane root = new BorderPane();

        VBox vBox = new VBox();
        vBox.setAlignment(Pos.CENTER);
        root.setCenter(vBox);

        HBox hBox = new HBox();
        hBox.setAlignment(Pos.CENTER);
        vBox.getChildren().add(hBox);

        TextField textField = new TextField("Hello World");
        textField.setAlignment(Pos.BASELINE_CENTER);
        hBox.getChildren().add(textField);
        SVGPath path =  new SVGPath();
        path.setContent("M2285.743632 920.887865L17.908728 935.551953 339.001687 22.333237l2186.128966-9.607506-239.387021 908.162134z");
        textField.setShape(path);

        textField.setStyle("-fx-border-color: red; -fx-border-width: 0 0 10 0;");


        Scene scene = new Scene(root, 800, 600);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }

}

class TextFieldStyleTestLauncher {public static void main(String[] args) {TextFieldStyleTest.main(args);}}